<template>
	<div style="margin-top:-10px;">

		<!--**********************************************************************************************************-->
		<el-divider content-position="left">投票數據</el-divider>
		<div class="manage-detail-row">
			<span class="label">投票狀態：</span>
			{{voteStatusObject[timelyObjectVote.status]}}
			<i class="el-icon-loading" v-show="loadingVote"></i>
		</div>
		<div class="manage-detail-row" v-if="voteObject.statue==1">
			<span class="label">投票截止：</span>
			<span>{{voteCutTimeFormat(voteObject.endTime)}}</span>
		</div>
		<div class="manage-detail-row ">
			<span class="label">總贊成票：</span>
			<div class="con number ">
				<i class="fa fa-thumbs-up"></i>
				{{timelyObjectVote.forVotes}}/{{precisionDivision(voteObject.quorumVotes,8) }}
				<i class="el-icon-loading" v-show="loadingVote"></i>
			</div>

		</div>
		<div class="manage-detail-row ">
			<span class="label">總反對票：</span>
			<div class="con number ">
				<i class="fa fa-thumbs-down"></i>
				{{timelyObjectVote.againstVotes }}
				<i class="el-icon-loading" v-show="loadingVote"></i>
			</div>
		</div>
		<div class="manage-detail-row ">
			<span class="label">我的投票：</span>
			<div class="con number ">
				贊成：<i class="fa fa-thumbs-up"></i>
				{{timelyObjectVote.forVotesMy }}
				反對：<i class="fa fa-thumbs-down"></i>
				{{timelyObjectVote.againstVotesMy }}
				<i class="el-icon-loading" v-show="loadingVote"></i>
			</div>
		</div>
		<div class="manage-detail-row">
			<span class="label">發起時間：</span>
			{{voteObject.createTime}}
		</div>

		<!--**********************************************************************************************************-->
		<el-divider content-position="left">賽事數據</el-divider>
		<div class="manage-detail-row">
			<span class="label">賽事名稱：</span>
			{{timelyObjectContest.infoName}}
		</div>
		<div class="manage-detail-row">
			<span class="label">本場玩法：</span>
			{{playTypesObject[timelyObjectContest.playType]}}
		</div>

		<div class="manage-detail-row">
			<span class="label">參賽雙方：</span>
			<div class="con">
				{{timelyObjectContest.contestMaster}}VS{{timelyObjectContest.contestBranch}}
			</div>

		</div>
		<div class="manage-detail-row">
			<span class="label">當前賠率：</span>
			<div class="con">
				{{contestOddsFlat(timelyObjectContest.odds)}}

				<i class="el-icon-loading" v-show="loadingContest"></i>
			</div>
		</div>
		<div class="manage-detail-row">
			<span class="label">賽事狀態：</span>
			<!---->
			{{contestStatusCnByCompute(timelyObjectContest.status,timelyObjectContest.endTimeStr)}}
			<!--（{{timelyObjectContest.status}}）-->
		</div>
		<div class="manage-detail-row">
			<span class="label">賽事結果：</span>
			<div class="con">
				<!--{{timelyObjectContest.getFootGameScore}}-->
				{{
					contestResultFlat(timelyObjectContest.getFootGameScore)
				}}
			</div>
		</div>
		<div class="manage-detail-row">
			<span class="label">開賽時間：</span>
			{{timelyObjectContest.gameStartTime}}
		</div>
		<div class="manage-detail-row">
			<span class="label">投注開始：</span>
			{{timelyObjectContest.startTimeStr}}
		</div>
		<div class="manage-detail-row">
			<span class="label">投注結束：</span>
			{{timelyObjectContest.endTimeStr}}
		</div>
		<div class="manage-detail-row c-red">
			<span class="label">游戏页面：</span>
			<!--//todo 这里要适配-->
			<!--<router-link class="c-red" :to="{name:'contest',params:{id:voteObject.externalLinkId}}">前往赛事页面<i class="el-icon-right"></i></router-link>-->
		</div>
		<!--**********************************************************************************************************-->
		<el-divider content-position="left">賽事結果覆核</el-divider>

		<div class="manage-detail-row">
			<span class="label">覆核狀態：</span>
			{{reviewStatusObject[reviewObjectContest.reviewState]}}
		</div>
		<div class="manage-detail-row">
			<span class="label">覆核內容：</span>
			{{ contestResultFlat(reviewObjectContest.calldatas.result) }}
		</div>

	</div>
</template>

<script>
import {contestMixinsGlobal} from "@/views/contestHall/contest.mixins.global";
import { mixinsManage} from "@/views/manage/js/manage.mixins";

export default {
	name: "manageDetail",
	// props:['voteObject','timelyObjectVote','timelyObjectContest'],
	props:{
		voteObject         : {
			type   : Object,
			default: {}
		},
		timelyObjectVote   : {
			type   : Object,
			default: {}
		},
		timelyObjectContest: {
			type   : Object,
			default: {}
		},
		reviewObjectContest: {
			type   : Object,
			default: {}
		},
		loadingVote        : {
			type   : Boolean,
			default: false
		},
		loadingContest     : {
			type   : Boolean,
			default: false
		},
	},
	mixins:[mixinsManage,contestMixinsGlobal],
	computed:{


	},
	filters: {

	},
}
</script>

<style lang="less">

</style>